const Router = require('koa-router');
const router = new Router();
const tool = require('../../tools/tool')
const {db, QueryTypes} = require("../../models/db");

// 保存送货路线区域
router.post('/deliver/getPrint', async ctx => {
    let tenantId = ctx.user.tenantId;
    let cargoId = ctx.request.body.cargoId;
    let cargo = await db.models['cargo'].findOne({
        where:{
            tenantId,
            id: cargoId
        }
    })
    return ctx.suc('修改成功');
})

module.exports = router;
